clc;
% symprod 函数用于计算符号乘积
syms k n;
P1=symprod(1+1/k^3,k,1,n);
P1
P2=symprod(1+1/k^3,k,1,inf);
P1
